package io;

import java.io.*;

public class OISDemo {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        FileInputStream fis=new FileInputStream("cxk.dat");
        BufferedInputStream bis=new BufferedInputStream(fis);
        ObjectInputStream ois=new ObjectInputStream(bis);
        Object obj=ois.readObject();
        Student cxk=(Student)obj;
        System.out.println(cxk);
        ois.close();
    }
}
